<?php

$num = range(1,49);
shuffle($num);
$num=array_slice($num,0,7);

foreach($num as $k=>$v){
	if($v < 10){
		$num[$k]='0'.$v;
	}
}
$num=implode(',',$num);
//echo date('G');
if(date('G')>=17){
	$expect='2019'.str_pad(date('z'),3,0,STR_PAD_LEFT);
	$opentime=date("Y-m-d 17:00:00",time());
}else{
	$expect='2019'.str_pad(date('z')-1,3,0,STR_PAD_LEFT);
	$opentime=date("Y-m-d 17:00:00",time()-24*3600);	
}
echo '{"data":[{"gameid":"lhc","opentime":"'.$opentime.'","opencode":"'.$num.'","expect":"'.$expect.'"}],"msg":""}';


